<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>RailUnit</title>
    <link rel="stylesheet" href="/RailUnit/RailUnit.umd.css">
</head>
<style>
    #my {
        width: 100%;
        height: 100%;
    }
</style>

<body>
    <div id="my"></div>
</body>

<script src="/RailUnit/RailUnit.umd.js"></script>
<script>
    window.uid = "2cgXCjpDT0ZxBvxMSr3pfm"
    const bimViewer = new MyViewer({
        serverUrl: '/RailUnit/',
        containerElement: document.getElementById('my'),
    })
    bimViewer.loadModel2('jianzhu', () => {
        bimViewer.setBackgroundColor([255, 255, 255])
        console.log('模型加载完成');
    })
</script>

</html>